import request from '@/utils/request'

export function removeQuestionFromExam(params) {
  return request({
    url:'/exam/removequestion',
    method:'post',
    params:params
  })
}

export function addExam(params) {
  return request({
    url:'/exam/add',
    method:'post',
    params:params
  })
}
export function fetchList(params) {
  return request({
    url:'/exam/list',
    method:'get',
    params:params
  })
}
export function fetchQuestionList(params) {
  return request({
    url:'/exam/listQuestion',
    method:'get',
    params:params
  })
}

export function deleteExam(id) {
  return request({
    url:'/exam/delete/'+id,
    method:'delete',
  
  })
}
export function updateExam(id,params) {
  return request({
    url:'/exam/update/'+id,
    method:'post',
  	params:params
  })
}
